package com.sz.service.impl;

import com.sz.dao.ItemsDao;
import com.sz.pojo.Items;
import com.sz.service.ItemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImplServiceImpl implements ItemsService {

    @Autowired
    private ItemsDao itemsDao;

    @Override
    // rollbackFor 发生哪种类型的异常需要回滚，
    // noRollbackFor 发生哪种类型的异常不需要回滚
    // isolation 隔离级别
    // propagation传播行为
    public List<Items> findAll() {
        return itemsDao.findAll();
    }
}
